import request from '@/utils/request'

// 查询舱单号历史记录列表
export function listManfestCodeHistory(query) {
  return request({
    url: '/bt/manfestCodeHistory/list',
    method: 'get',
    params: query
  })
}

// 查询舱单号历史记录详细
export function getManfestCodeHistory(id) {
  return request({
    url: '/bt/manfestCodeHistory/getInfo/' + id,
    method: 'get'
  })
}

// 新增舱单号历史记录
export function addManfestCodeHistory(data) {
  return request({
    url: '/bt/manfestCodeHistory/add',
    method: 'post',
    data: data
  })
}

// 修改舱单号历史记录
export function updateManfestCodeHistory(data) {
  return request({
    url: '/bt/manfestCodeHistory/edit',
    method: 'post',
    data: data
  })
}

// 删除舱单号历史记录
export function delManfestCodeHistory(id) {
  return request({
    url: '/bt/manfestCodeHistory/remove/' + id,
    method: 'get'
  })
}

// 导出舱单号历史记录
export function exportManfestCodeHistory(query) {
  return request({
    url: '/bt/manfestCodeHistory/export',
    method: 'get',
    params: query
  })
}